Former President Trump has said he is willing to consider appointing Robert F. Kennedy Jr. to a government role if he supports him.